package com.qianda.qdminiapp.dao.order;

import com.qianda.qdminiapp.domain.model.order.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.math.BigDecimal;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cw
 * @since 2019-08-06
 */
public interface OrderDao extends BaseMapper<Order> {

    /*
     * 设备拥有者用户余额增加userMoney
     * @Description 
     * @Author cw
     * @Date 13:26 2019/8/8
     * @Param [params]
     * @return void
     **/
    int updateUserMoneyByOrderId(Map<String,Object> params);

    int updateIntroducerMoneyByDeviceId(BigDecimal introducerMoney,Integer deviceId);
}
